package com.information.manage.basic.audit.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("audit_level")
public class AuditLevelDO {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "自增id")
    private Long id;

    @ApiModelProperty(value = "审核层级名称")
    private String name;

    @ApiModelProperty("审核模板ID")
    private Long auditModelId;

    @ApiModelProperty("顺序：1/2/3/4/5")
    private Integer level;

    @ApiModelProperty("审核人类型： (user:人员审核,role:角色审核)")
    private String type;

    @ApiModelProperty("通过方式：0/会签(需要全部人员同意才算审核通过) 1/或签(只要有一个人同意即代表审核通过)")
    private Integer passMethod;

    @ApiModelProperty( "创建人ID")
    private String createUserId;

    @ApiModelProperty("创建人名称")
    private String createUserName;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

}
